<?php
/*
<Model Information> 
Author: Naseer Ahmad
Date: 13-10-2011
Last Updated on: 13-10-2011
*/


class categoryManagerModel extends appModel
{
	var $name = 'categoryManagerModel';
	
	function saveCategory($catName, $catDetail, $catParrent){
		$fv= array("categoryName"		=> $catName,
				   "parentcategoryID"	=> $catParrent,
				   "categoryDetail"		=> $catDetail);
		return $this -> _insertTable("CategoriesInfo", $fv);
	}

	function updateCategory($catId, $catName, $catDetail){
		$fv= array("categoryName"		=> $catName,
				   "categoryDetail"		=> $catDetail);
		$where = array("categoryID"		=> $catId);		   
		return $this -> _updateTable("CategoriesInfo", $fv, $where);
	}

	

}

?>